
const path = require('path');

module.exports = {
    mode:'development', // production
    devtool: "source-map", //source-map,eval-source-map
    // entry:'./test_ui/test_slider.js',
    entry:'./src/test/test_core_2.js',
    output: {
        filename:'bundle.js',
        path: path.join(__dirname,'dist')
    },

    module:{
        rules: [
            {
                test:/\.css$/,
                use:['style-loader','css-loader']
            }
        ]
    },

    // node:{
    //   fs:'empty',
    //   path:'empty'
    // },

    watch: true   // 监听修改自动打包
};
